package com.zhl.math;

public class SystemTest1 {
    public static void main(String[] args) {
        long time1 = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++) {
            Math.sqrt(i);
        }
        long time2 = System.currentTimeMillis();
        //换算成秒
        System.out.println("Time used: " + (time2 - time1) / 1000.0 + " s");
        //看一下循环计算花费的时间。
    }
}
